Skip to content

Publish to npm with trusted publishing (OIDC) - #79

Merged
ryansolid merged 1 commit into
mainfrom
claude/project-thread-wjqzma
Nov 2, 2026
Merged

ryansolid merged 1 commit into
mainfrom
claude/project-thread-wjqzma

Conversation

@ryansolid

Copy link
Copy Markdown
Member

Requested by Ryan · project thread

Why

The Release run for #78 (run) failed: changesets logged No NPM_TOKEN or OIDC available and npm publish got E404 Not Found - PUT .../@solidjs%2fmeta. So 0.29.8 never reached npm (latest is still 0.29.4).

What

Same setup as solid-router / vite-plugin-solid:

  • permissions: id-token: write (plus contents/pull-requests: write for the changesets PR)
  • Node 24.x for the release job (npm >= 11.5.1 is required for OIDC publishing)
  • NPM_CONFIG_PROVENANCE: 'true'; NPM_TOKEN is no longer passed

package.json repository.url is already https://github.com/solidjs/solid-meta, which matches the repo, so provenance will validate.

Before merging

A trusted publisher must be added for @solidjs/meta on npmjs.com (Settings → Trusted publishing → GitHub Actions): org solidjs, repo solid-meta, workflow release.yml, environment empty. Merging this then re-runs Release, which publishes 0.29.8.


Generated by Claude Code

Release runs failed with E404 on PUT because no valid NPM_TOKEN was
available. Switch the release workflow to npm trusted publishing:
grant id-token: write, publish with Node 24 (npm >= 11.5.1), and
enable provenance. The NPM_TOKEN secret is no longer used.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0117BoWMeBqmYDKGbGuJ23fJ
@ryansolid ryansolid self-assigned this Nov 2, 2026
@ryansolid
ryansolid merged commit b7b3902 into main Nov 2, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants